<template>
  <ThemeConfigProvider :theme="theme">
    <a-button type="text" size="small" :icon="iconWorkbench" @click="onCLick">企业后台</a-button>
  </ThemeConfigProvider>
</template>

<script setup lang="ts">
import { iconifyToAntdvIconVNode } from '@ykst/shared';
import ThemeConfigProvider, { type ThemeProps } from '@/components/AntdVue/ThemeConfigProvider.vue';

defineProps<ThemeProps>();

const iconWorkbench = iconifyToAntdvIconVNode('i-tdesign:jump');

const onCLick = () => routerPush('/company');
</script>

<style scoped></style>
